home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / windows / games / wincapt.arj / DIBUTIL.H < prev    next >
Text File  |  1992-03-20  |  682b  |  24 lines

  1. /*
  2.  *  dibutil.h
  3.  *
  4.  *  Copyright (c) 1991 Microsoft Corporation. All rights reserved.
  5.  *
  6.  *  Header file for Device-Independent Bitmap (DIB) API.  Provides
  7.  *  function prototypes and constants for the following functions:
  8.  *
  9.  *  AllocRoomForDIB()   - Allocates memory for a DIB
  10.  *
  11.  */
  12.  
  13.  
  14. /* DIB constants */
  15. #define PALVERSION   0x300
  16.  
  17. /* DIB macros */
  18. #define IS_WIN30_DIB(lpbi)  ((*(LPDWORD)(lpbi)) == sizeof(BITMAPINFOHEADER))
  19. #define RECTWIDTH(lpRect)     ((lpRect)->right - (lpRect)->left)
  20. #define RECTHEIGHT(lpRect)    ((lpRect)->bottom - (lpRect)->top)
  21.  
  22. /* function prototypes */
  23. HANDLE          AllocRoomForDIB(BITMAPINFOHEADER bi, HBITMAP hBitmap);
  24.